package com.kws.merchant.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 报价-项目子方案(ItemScheme)表实体类
 *
 * @author yxy
 * @since 2024-10-24 15:55:40
 */
@Data
@ApiModel("报价-项目报价明细")
@TableName(value = "tb_item_scheme")
public class ItemScheme extends Model<ItemScheme> implements Serializable {
    private static final long serialVersionUID = -29726935174190796L;

    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty("$column.comment")
    private Long id;

    @ApiModelProperty("方案id")
    private Long schemeId;

    @ApiModelProperty("方案名称")
    private String itemSchemeName;

    @ApiModelProperty("价格-子方案服务项总价")
    private Double itemSchemePrice;


    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("单项报价")
    @TableField(exist = false)
    private List<ItemSchemeInfo> itemSchemeInfos;

    @ApiModelProperty("商家id")
    private Long merchantId;

}
